import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '@/views/HomePage.vue'; // 确保路径正确
import IndexPage from '@/components/index.vue'; // 确保路径正确
import Login from '@/components/Login.vue'; // 新增登录页面的导入
import Dashboard from '@/components/Dashboard.vue'
import Voting from '@/components/Voting.vue'; 
import TeamMembers from '../components/TeamMembers.vue';
const routes = [
    { path: '/index', component: HomePage },
    { path: '/', component: IndexPage },
    { path: '/login', name: 'Login', component: Login },
    {path: '/dashboard',name: 'Dashboard',component: Dashboard,},
    // {path: '/voting',name: 'Voting',component: Voting,},
    {path: '/team-members',name: 'TeamMembers',component: TeamMembers,},
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
